#include "favoritescreator.h"
#include "folderfavoritesitem.h"
#include "favoritesitem.h"

using namespace ExecTerminalImplNS;

AbstractFavoritesItem * FavoritesCreator::createFavoritesItem(bool isFolder, FolderFavoritesItem * parent)
{
    AbstractFavoritesItem * rez = isFolder ? 
        static_cast<AbstractFavoritesItem *>(new FolderFavoritesItem(parent)) : 
        static_cast<AbstractFavoritesItem *>(new FavoritesItem(parent));
    return rez;
}
